
<?php

$dbhost = "localhost";
$dbuser = "root";
$dbpassword = "";

$database = "ThreadExtraction";

$dataTable = "Test_Data";
$annotationsTable = "annotations_edit_testing";
$fileTable = "Test_Files";
$threadsTable = "threads_edit_testing";

$db = db_connect();

function db_connect()
{  $db = @mysql_connect($GLOBALS["dbhost"], 
                        $GLOBALS["dbuser"], 
                        $GLOBALS["dbpassword"]);
   if($db)  mysql_select_db($GLOBALS["database"], $db);
   return $db;
}

function db_disconnect($connection)
{  mysql_close($connection); }

?>

